package my.study.c.consul.consumer.app.hello.service;

import feign.RequestLine;
import my.study.c.consul.consumer.app.configuration.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "feignClient", name = "service-provider", configuration = FeignConfiguration.class)
public interface MyFeignClient {

    //    @RequestLine("GET /hello")
    @GetMapping("/hello")
    public String hello();
}
